package com.bw.user.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.common.utils.PageUtils;
import com.bw.common.utils.Query;

import com.bw.user.dao.BargainOrderDao;
import com.bw.user.entity.BargainOrderEntity;
import com.bw.user.service.BargainOrderService;


@Service("bargainOrderService")
public class BargainOrderServiceImpl extends ServiceImpl<BargainOrderDao, BargainOrderEntity> implements BargainOrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BargainOrderEntity> page = this.page(
                new Query<BargainOrderEntity>().getPage(params),
                new QueryWrapper<BargainOrderEntity>()
        );

        return new PageUtils(page);
    }

}